package ${packagePath};

import lombok.Getter;
import lombok.Setter;
import net.sinedu.foundation.core.annotation.ModelProperty;
import net.sinedu.foundation.data.jpa.entity.AbstractEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
#if(${hasBigDecimal})
import java.math.BigDecimal;
#end

/**
 * Created by ${author} on ${datetime}.
 */
@Entity
@Setter
@Getter
@Table(name = "${tableName}")
@ModelProperty(field = "id")
public class ${className} extends AbstractEntity {
#foreach ($column in $columns)

  /**
   * $column.comments
   */
  @Column(name = "$column.columnName")
  private $column.attrType $column.attrname;
#end
}
